package com.ynny.usermanager.dao;

import com.ynny.usermanager.entity.User;

import java.util.List;

public interface UserDao {

    //根据id获取用户
    User selectUserById(Integer id);

    //查询所有用户信息
    List<User> selectUsers();

    //添加用户
    int insertUser(User user);

    //更新用户
    int updateUser(User user);

    //删除用户
    int deleteUserById(Integer id);

}
